<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <title>工作汇总</title>
    <script src="/Public/Home/SaleManager/js/zepto.min.js"></script>
    <link href="/Public/Home/SaleManager/css/stylesheets/weui.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/Public/Home/SaleManager/css/stylesheets/index.css">
</head>
<body>
<div class="workAllSumary">
    <header class = "all_header">
        <a class = "h_back h_back_1" href="javascript:void(0)"><img src="/Public/Home/SaleManager/images/back_icon.png" alt=""></a>
        <span class = "h_title">工作汇总</span>
        <a class = "h_add" href="javascript:void(0)"></a>
    </header>
    <div class = "work_tips">共<span><?php echo ($count); ?></span>位业务员</div>
    <?php if(is_array($salelists)): $i = 0; $__LIST__ = $salelists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sale): $mod = ($i % 2 );++$i;?><div class="work_lists">
        <div class="work_list">
            <div class="work_header" data-saleId='<?php echo ($sale["id"]); ?>'>
                <div style = "flex: 1;">
                    <img class = 'work_icon' src="/Public/Home/SaleManager/images/people.png" alt="">
                    <span class = "work_name"><?php echo ($sale["real_name"]); ?></span>
                </div>
                <span class="weui-cell__ft"></span>
            </div>
            <div class="work_odd">
                <span>目标诊所</span>
                <span><span class = "work_nums"><?php echo ($sale["stastics"]["clinicSumNum"]); ?></span>个</span>
            </div>
            <div class="work_even">
                <span>诊所数量</span>
                <span><span class = "work_nums"><?php echo ($sale["stastics"]["clinicNum"]); ?></span>个</span>
            </div>
            <div class="work_odd">
                <span>医生数量</span>
                <span><span class = "work_nums"><?php echo ($sale["stastics"]["doctorNum"]); ?></span>个</span>
            </div>
            <div class="work_even">
                <span>拜访次数</span>
                <span><span class = "work_nums"><?php echo ($sale["stastics"]["salmanVisitNum"]); ?></span>次</span>
            </div>
            <div class="work_odd">
                <span>申请统计</span>
                <span><span class = "work_nums"><?php echo ($sale["stastics"]["salemanApplyNum"]); ?></span>次</span>
            </div>
            <div class="work_even">
                <span>销售统计</span>
                <span><span class = "work_nums"><?php echo ($sale["stastics"]["salemanOrderNum"]); ?></span>元</span>
            </div>
            <div class="work_odd">
                <span>订货统计</span>
                <span><span class = "work_nums"><?php echo ($sale["stastics"]["salemanPrice"]); ?></span>元</span>
            </div>
            <div class="work_even">
                <span>退货统计</span>
                <span><span class = "work_nums"><?php echo ($sale["stastics"]["quitePrice"]); ?></span>元</span>
            </div>
        </div>
    </div><?php endforeach; endif; else: echo "" ;endif; ?>

</div>
<script src = "/Public/Home/SaleManager/js/index.js"></script>
<script src = "/Public/Home/SaleManager/js/androidback.js"></script>
<script>
$(".workAllSumary").on("click",".work_header",function () {
	saleId=$(this).attr('data-saleId');
	window.location.href = "/Home/WorkSummary/SaleSummary/index/saleId/"+saleId+"/year/<?php echo ($year); ?>/source/salelist";
});
</script>
</body>
</html>